/*
 *      IL_SSA.java
 *
 *      Copyright 2008 Pablo Nicolas Diaz Bilotto <pablonicolas.diaz@gmail.com>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

package ilanguage.iltokens;

import lexer.EntryType;


/**
 * The Class IL_SSA.
 */

public class IL_SSA implements IL_BaseSSA {

	/**
	 * Instantiates a new i l_ ssa.
	 */
	public IL_SSA() {
	}

	/* (non-Javadoc)
	 * @see ilanguage.iltokens.IL_BaseSSA#GenerateCode()
	 */
	public String GenerateCode() {
		return null;
	}


	/**
	 * Gets the reference.
	 *
	 * @return the reference
	 */
	public IL_BaseSSA getReference() {
		return null;
	};

	/**
	 * Gets the seq.
	 *
	 * @return the seq
	 */
	private int getSeq() {
		return 0;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#getSequence()
	 */
	public String getSequence() {
		return "";
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#getValue()
	 */
	public Object getValue() {
		return "DISCARTABLE_TOKEN";
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#isDiscartable()
	 */
	public boolean isDiscartable() {
		return true;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#isRefPrint()
	 */
	public boolean isRefPrint() {
		return false;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see
	 * ilanguage.iltokens.ILElement#setReference(ilanguage.iltokens.ILToken)
	 */
	public void setReference(final IL_SSA t) {

	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#setRefPrint(boolean)
	 */
	public void setRefPrint(boolean refPrint) {

	}

	/*
	 * (non-Javadoc)
	 *
	 * @see ilanguage.iltokens.ILElement#solveTypes()
	 */
	public EntryType solveTypes() {
		return EntryType.NOTYPE;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DISCARTABLE_TOKEN";
	}

	@Override
	public String getResultRegister() {
		return "";
	}

	@Override
	public boolean ispostdiscartable() {
		return this.isDiscartable();
	}

}
